﻿using iMES.Entity.SystemModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace iMES.Entity.DomainModels
{
    [Entity(TableCnName = "机床", TableName = "MachineTool", DBServer = "SysDbContext")]
    public partial class MachineTool : SysEntity
    {
        /// <summary>
        ///机床主键
        /// </summary>
        [Key]
        [Display(Name = "机床主键")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public Guid MachineId { get; set; }
        /// <summary>
        ///生产计划主键
        /// </summary>
        [Display(Name = "生产计划主键")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public Guid ProductionPlanningId { get; set; }

        /// <summary>
        ///设备编号
        /// </summary>
        [Display(Name = "设备编号")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string? DeviceCode { get; set; }

        // <summary>
        ///设备名称
        /// </summary>
        [Display(Name = "设备名称")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string? DeviceName { get; set; }

        // <summary>
        ///设备状态
        /// </summary>
        [Display(Name = "设备状态")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string? DeviceState { get; set; }
        // <summary>
        ///设备图片
        /// </summary>
        [Display(Name = "设备图片")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string? DevicePicture { get; set; }
    }
}
